package show;

import java.util.LinkedList;

@SuppressWarnings("unchecked")
public class Logche 
{
	private Main_show logche;
	
	private LinkedList nameL = null;
	private LinkedList pswL = null;
	public Logche()
	{
		logche = new Main_show();
	}
	public int check(String name,String pass)
	{
		nameL = logche.getNAME();
		pswL = logche.getPSW();
		for(int i = 0;i<nameL.size();i++)
		{
			if(name.equals(nameL.get(i)))
			{
				if(pass.equals(pswL.get(i)))
				{
					return 1;
				}
				else
				{
					return 2;
				}
			}
		}
		return 3;
	}
}
